package educationaladministrationsystem.CSM.Mapper.Service.StudentAndTeacher.Student;

import educationaladministrationsystem.CSM.Mapper.Service.ServiceInterface.StudentAndTeacherInterface.Student.StudentCourseSchedule;
import educationaladministrationsystem.Class.Course;
import educationaladministrationsystem.CSM.Mapper.StudentAndTeacher.Student.StudentCourseScheduleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentCourseScheduleService implements StudentCourseSchedule {
    @Autowired
    private StudentCourseScheduleMapper studentCourseScheduleMapper;

    @Override
    public List<String> getStudentCourse(String UID) {
        return studentCourseScheduleMapper.getStudentCourse(UID);
    }

    @Override
    public Course getCourseByCourseId(String id) {
        return studentCourseScheduleMapper.getCourseByCourseId(id);
    }
}
